/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jsf.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author gang
 */
@Entity
@Table(name = "logcommon")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Logcommon.findAll", query = "SELECT l FROM Logcommon l")})
public class Logcommon implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "logid")
    private Integer logid;
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 30)
    @Column(name = "logtype")
    private String logtype;
    @Column(name = "logtime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date logtime;
    @Size(max = 30)
    @Column(name = "loguser")
    private String loguser;
    @Size(max = 30)
    @Column(name = "logopration")
    private String logopration;
    @Size(max = 30)
    @Column(name = "logfrom")
    private String logfrom;
    @Size(max = 50)
    @Column(name = "logfromlink")
    private String logfromlink;
    @Size(max = 50)
    @Column(name = "remark")
    private String remark;
    @Size(max = 50)
    @Column(name = "standby")
    private String standby;

    public Logcommon() {
    }

    public Logcommon(Integer logid) {
        this.logid = logid;
    }

    public Logcommon(Integer logid, String logtype) {
        this.logid = logid;
        this.logtype = logtype;
    }

    public Integer getLogid() {
        return logid;
    }

    public void setLogid(Integer logid) {
        this.logid = logid;
    }

    public String getLogtype() {
        return logtype;
    }

    public void setLogtype(String logtype) {
        this.logtype = logtype;
    }

    public Date getLogtime() {
        return logtime;
    }

    public void setLogtime(Date logtime) {
        this.logtime = logtime;
    }

    public String getLoguser() {
        return loguser;
    }

    public void setLoguser(String loguser) {
        this.loguser = loguser;
    }

    public String getLogopration() {
        return logopration;
    }

    public void setLogopration(String logopration) {
        this.logopration = logopration;
    }

    public String getLogfrom() {
        return logfrom;
    }

    public void setLogfrom(String logfrom) {
        this.logfrom = logfrom;
    }

    public String getLogfromlink() {
        return logfromlink;
    }

    public void setLogfromlink(String logfromlink) {
        this.logfromlink = logfromlink;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStandby() {
        return standby;
    }

    public void setStandby(String standby) {
        this.standby = standby;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (logid != null ? logid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Logcommon)) {
            return false;
        }
        Logcommon other = (Logcommon) object;
        if ((this.logid == null && other.logid != null) || (this.logid != null && !this.logid.equals(other.logid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.jsf.entity.Logcommon[ logid=" + logid + " ]";
    }
    
}
